package com.ojoin.trade.common.web.notifications;


import java.util.Map;

import com.ojoin.trade.common.web.domain.Notification;
import com.ojoin.trade.common.web.domain.NotificationType;

public interface NotificationAPIService   {


    boolean isFirst(NotificationType type);


    boolean publishIfFirst(Notification notification);
    
    void notify(Integer userId, String templateName, Map<String, Object> context);
    	
    int fixedAllByType(NotificationType type);
}
